<div class="content">

<p><a href="javascript:void(0)" onclick="dashangToggle()" class="dashang" title="觉得好的话欢迎打赏哦～">打赏</a></p>

<div class="hide_box"></div>

<div class="shang_box">

	<a class="shang_close" href="javascript:void(0)" onclick="dashangToggle()" title="关闭"><img src="/img/close.jpg" alt="取消" /></a>

	<div class="shang_tit">

		<p> 打赏标语 </p>

	</div>

	<div class="shang_payimg">

		<img src="/img/alipayimg.jpg" alt="扫码支持" title="扫一扫" />

	</div>

		<div class="pay_explain"> 二维码下方标语 </div>

	<div class="shang_payselect">

		<div class="pay_item checked" data-id="alipay">

			<span class="radiobox"></span>

			<span class="pay_logo"><img src="/img/alipay.jpg" alt="支付宝" /></span>

		</div>

		<div class="pay_item" data-id="weipay">

			<span class="radiobox"></span>

			<span class="pay_logo"><img src="/img/wechat.jpg" alt="微信" /></span>

		</div>

	</div>

	<div class="shang_info">

		<p>打开<span id="shang_pay_txt">支付宝</span>扫一扫，就可以给博主打赏哦～</p>

	</div>

</div>

</div>

<script type="text/javascript">

$(function(){

	$(".pay_item").click(function(){

		$(this).addClass('checked').siblings('.pay_item').removeClass('checked');

		var dataid=$(this).attr('data-id');

		$(".shang_payimg img").attr("src","/img/"+dataid+"img.jpg");

		$("#shang_pay_txt").text(dataid=="alipay"?"支付宝":"微信");

	});

});
